package demo2;

public class Homework2 {
			public static void main(String[] args) {
				DO doing=new DO();
				Thread sub=new Thread(()->{
					for(int i=0;i<3;i++){
						doing.Threadsub();
					}
				});
				Thread main=new Thread(()->{
					for(int i=0;i<3;i++){
						doing.Threadmain();
					}
				});
				sub.start();
				main.start();
			}
}
